﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ShowProjects.aspx.cs" Inherits="Bitirme.Views.ShowProjects" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <fieldset class="login">
        <legend>Projeler</legend>
        <center>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="ObjectDataSource1" CssClass="GridStyle" GridLines="None"
            onRowCommand = "GridView1_OnRowCommand">
            <Columns>
                <asp:BoundField DataField="ID" HeaderText="No" SortExpression="ID"/>
                <asp:BoundField DataField="Name" HeaderText="İsim" SortExpression="Name" />
                <asp:BoundField DataField="Subject" HeaderText="Konu" 
                    SortExpression="Subject" />
                <asp:BoundField DataField="Cost" HeaderText="Tutar" SortExpression="Cost" />
                <asp:BoundField DataField="StartDate" HeaderText="Başlama Tarihi" 
                    SortExpression="StartDate" />
                <asp:BoundField DataField="EndDate" HeaderText="Bitiş Tarihi" 
                    SortExpression="EndDate" />
                <asp:BoundField DataField="Duration" HeaderText="Süre" 
                    SortExpression="Duration" />
                <asp:ButtonField CommandName="deleteProject" ButtonType="Button" Text="Sil"/>
                <asp:ButtonField CommandName="update" ButtonType="Button" Text="Güncelle" />
                <asp:ButtonField CommandName="workpackage" ButtonType="Button" HeaderText="İş Paketi" Text="Ekle" />
                <asp:ButtonField CommandName="show_workpackages" ButtonType="Button" Text="Listele" HeaderText="İş Paketi"/>
                <asp:ButtonField CommandName="assign" ButtonType="Button" Text="Atama Yap" />
                <asp:ButtonField CommandName="show_assignment" ButtonType="Button" Text="Takvimi Göster" />
                <asp:ButtonField ButtonType="Button" CommandName="show_gantt" Text="Gantt" />
            </Columns>
                <RowStyle CssClass="RowStyle" />
                <EmptyDataRowStyle CssClass="EmptyRowStyle" />
                <PagerStyle CssClass="PagerStyle" />
                <SelectedRowStyle CssClass="SelectedRowStyle" />
                <HeaderStyle CssClass="HeaderStyle" />
                <EditRowStyle CssClass="EditRowStyle" />
                <AlternatingRowStyle CssClass="AltRowStyle" />

        </asp:GridView>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            SelectMethod="GetAllProjects" TypeName="Bitirme.Controllers.ProjectHandler">
        </asp:ObjectDataSource>
        </center>
        <p></p>
    </fieldset>
    <br>
    <p><asp:Label ID="Label1" runat="Server" ForeColor="red" EnableViewState="False"></asp:Label></p>

</asp:Content>
